﻿using AviewLightSource;
using FinalTestMachine.Connect;
using FinalTestMachine.Motion.Product;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinalTestMachine.Motion.Process.SubProcess
{
    public class SixthTestStation : Process_TestStationBase
    {
        private SixthTestStation() : base(SiteConnectManager.Cur.GetCommunicationHelper(6), "工站六", 5)
        {
        }

        public static readonly SixthTestStation Cur = new SixthTestStation();
        public static SixthTestStation CreateInstance()
        {
            return Cur;
        }

        public override bool AxiOrCylinderToWorkPos()
        {
            Aixs.Site6.Aix_Site6_PipeUpDown.Cur.WorkPos.Mov();
            return true; 
        }

        public override bool AxiOrCylinderToWaitPos()
        {
            Aixs.Site6.Aix_Site6_PipeUpDown.Cur.WaitPos.Mov();
            return true;
        }

        public override bool OtherActionBeforeExit()
        {
            return true;
        }

        public override ProductTestStation GetCurrentStation()
        {
            return CurrentProduct?.GetTestStation(6);
        }

        public override ProductTestStation GetLastStation()
        {
            return CurrentProduct?.GetTestStation(5);
        }

    }
    
}
